x86/hvm: provide hvm_hap_supported
authorWei Liu <wei.liu2@citrix.com>
Sun, 26 Aug 2018 12:19:37 +0000 (13:19 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 28 Aug 2018 09:48:45 +0000 (10:48 +0100)
commit3212e3464f336e0fd1270a88f65028833180709e
treeec40b6408d60585ae15ea7d369a20c0383debf73
parenta0a6b2421ffcd917d35c2879b6df6c1bfe63f6ca
x86/hvm: provide hvm_hap_supported

And replace direct accesses in non-HVM subsystems to
hvm_funcs.hap_supported with the new function, to avoid accessing an
internal data structure of another subsystem directly.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpuid.c
xen/arch/x86/domain.c
xen/arch/x86/setup.c
xen/include/asm-x86/hvm/hvm.h